home *** CD-ROM | disk | FTP | other *** search
/ MacWorld Secrets (4th Edition) / Mac Secrets CD 4th Ed.toast / Apple Advanced Technologies / Apple Speech Technologies 1.5 / PlainTalk Developer Info / Speech Recognition Manager SDK / SR Sample Code / IM SR Example / MyInstallNotificationCallBack.c < prev    next >
C/C++ Source or Header  |  1996-05-02  |  457b  |  18 lines

  1. #include <SpeechRecognition.h>
  2.  
  3. extern    pascal void        MyNotificationCallBack (SRCallBackStruct *param);
  4.  
  5.  
  6. pascal OSErr    MyInstallNotificationCallBack (SRRecognizer recognizer);
  7.  
  8. pascal OSErr MyInstallNotificationCallBack (SRRecognizer recognizer)
  9. {
  10.     SRCallBackParam    myCallBackPB;
  11.     
  12.     myCallBackPB.callBack = NewSRCallBackProc (MyNotificationCallBack);
  13.     
  14.     return SRSetProperty (recognizer, kSRCallBackParam, 
  15.                                             &myCallBackPB, sizeof (myCallBackPB));
  16. }
  17.  
  18.